package com.hbjycl.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.hbjycl.dao.*;
import com.hbjycl.entity.*;
import com.hbjycl.service.*;

@Service
public class BbsServiceImpl extends BaseServiceImpl<Bbs, String> implements BbsService
{
    @Resource
    private BbsDao bbsDao;
    
    @Resource
    public void Bbs(BbsDao bbsDao)
    {
        super.setBaseDao(bbsDao);
    }
    @Override
	public Bbs getBbsBybbsname(String bbsname)
	{
    	return bbsDao.getBbsBybbsname(bbsname);
	}
    @Override
	public List<Bbs> getBbsByclicknum(){
    	return bbsDao.getBbsByclicknum();
    }
    @Override
	public List<Bbs> getBbsBycommentnum(){
    	return bbsDao.getBbsBycommentnum();
    }
    @Override
	public List<Bbs> getBbsBylasttime()
	{
    	return bbsDao.getBbsBylasttime();
	}
    @Override
	 public boolean isExistByBbsname(String bbsname)
	 {
    	return bbsDao.isExistByBbsname(bbsname);
	 }
    @Override
    public  List<Comment> getCommentList(String bbsname){
    	return bbsDao.getCommentList(bbsname);
    }
}
